package com.sne.airways.system.dto;

/**
 * Created by IntelliJ IDEA.
 * User: 李庆旭
 * Date: 11-6-20
 * Time: 下午3:31
 * To change this template use File | Settings | File Templates.
 */
public class TdUserRoleDTO {
    /**
     * 用户ID
     */
    private String userRoleId;
    /**
     * 登录号
     */
    private String userId;
    /**
     * 用户名
     */
    private String roleId;

    public String getUserRoleId() {
        return userRoleId;
    }

    public void setUserRoleId(String userRoleId) {
        this.userRoleId = userRoleId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof TdUserRoleDTO)) return false;

        TdUserRoleDTO tdUserRoleDTO = (TdUserRoleDTO) o;

        if (userRoleId != null ? !userRoleId.equals(tdUserRoleDTO.userRoleId) : tdUserRoleDTO.userRoleId != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return userRoleId != null ? userRoleId.hashCode() : 0;
    }
}
